<%-- 
    Document   : topHead
    Created on : 2015-5-28, 18:39:49
    Author     : xulin
--%>
<%@page import="java.util.Date"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.concurrent.TimeUnit"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="com.danga.MemCached.MemCachedClient"%>
<%@page import="org.gelivable.web.EnvUtils"%>
<%@page import="cn.pconline.r.client.RClient"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String key = "TOP_HEAD_HTML";
    MemCachedClient memCachedClient = EnvUtils.getEnv().getBean("mcc",MemCachedClient.class);
    String html = (String)memCachedClient.get(key);
    if(StringUtils.isBlank(html)){
        RClient rClient = EnvUtils.getEnv().getBean(RClient.class);
        String url = "http://www.pcauto.com.cn/global/bbs_header_html/index.html";
        //R系统不缓存
        html = rClient.get(url,"",3000,TimeUnit.MILLISECONDS,0);
        if(!StringUtils.isBlank(html)){
            long current = System.currentTimeMillis();
            //缓存15分钟
            long time  = 900000;
            memCachedClient.set(key, html,new Date(current+time));
        }
    }
        request.setAttribute("TOP_HEAD_HTML", html);
%>
<c:if test="${not empty TOP_HEAD_HTML}">
    ${TOP_HEAD_HTML}
</c:if>
<c:if test="${empty TOP_HEAD_HTML}">
<style type="text/css">
dl,dt,dd,ul,li{ margin:0; padding:0;}
.clearfix{*zoom:1}.clearfix:after{content:"\20";clear:both;height:0;display:block;overflow:hidden;}
.nb-none{ display:none;}
.navibar .nb-arrow,
.nb-tit-user .nb-msgtip,
.nb-menulist .nb-ml-arrow,
.nb-menulist .nb-ml-ic,
.navibar .nb-tit-icon,
.nb-tit-message .msg-icon{background: url(http://www1.pcauto.com.cn/header/images/navbar.png) no-repeat;}
.navibar{ min-width:1000px; text-align: left; position:relative; z-index:555; height: 28px; border-bottom:1px solid #ececec; background-color:#f8f8f8;color: #666; font:12px/28px "微软雅黑","宋体";}
.navibar-wap{ width:1000px; margin:0 auto;}
.navibar-la{ float:left; display: inline;}
.navibar-lb{ float:right; display: inline;}
.navibar a{color: #666;}
.navibar a:hover{color: #f60;}
.navibar .nb-info,
.navibar .nb-tit{ display:inline; float:left;}
.navibar .nb-tit{ position: relative; line-height:28px; margin-right:15px;}
.navibar .nb-arrow{ position:absolute; top:13px; right:0;width: 5px; height: 3px; overflow: hidden;  vertical-align: middle; background-position:-16px -20px; margin-left: 3px;}
html:root .navibar .nb-arrow{ background-position:-16px -20px; 
transition:.25s;
-moz-transition:.25s; /* Firefox 4 */
-webkit-transition:.25s;  /* Safari 和 Chrome */
-o-transition:.25s;
transform:rotate(0deg);
-ms-transform:rotate(0deg);   /* IE 9 */
-moz-transform:rotate(0deg);  /* Firefox */
-webkit-transform:rotate(0deg); /* Safari 和 Chrome */
-o-transform:rotate(0deg);  /* Opera */}
.navibar .nb-tit-hover .nb-arrow{ background-position:-16px -8px;}
html:root .navibar .nb-tit-hover .nb-arrow{ background-position:-16px -20px; 
transition:.25s;
-moz-transition:.25s; /* Firefox 4 */
-webkit-transition:.25s;  /* Safari 和 Chrome */
-o-transition:.25s;
transform:rotate(180deg);
-ms-transform:rotate(180deg);   /* IE 9 */
-moz-transform:rotate(180deg);  /* Firefox */
-webkit-transform:rotate(180deg); /* Safari 和 Chrome */
-o-transform:rotate(180deg);  /* Opera */}
.navibar .nb-menu{ position: relative;  padding-right:8px;}
.navibar .nb-menulist{ display: none; position: absolute; width: 124px; padding-top:8px; top:27px; left:50%; margin-left:-63px;z-index:10; background:url(about:blank); text-align:left;}
.navibar .nb-tit-hover .nb-menulist{ display: block;}
.navibar .nb-menulist-inner{ display:block; position:relative; border:1px solid #ececec;border-radius: 2px; background: #fff; zoom:1;}
.nb-menulist .nb-ml-arrow{ display: block;width: 12px; height: 7px;overflow: hidden;background-position:-9px -32px;position: absolute;top: -7px;left: 50%; margin-left:-6px;z-index: 10;}
.nb-menulist .nb-ml-item{display:block; position:relative; height: 30px;line-height: 30px; padding:0 15px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;text-overflow:clip\0;}
.nb-menulist .nb-ml-ic{display: inline; float: left; width:21px; margin-right:6px;_overflow: hidden;}
.nb-tit-sites .nb-menulist{width:70px; text-align:center; margin-left:-35px;}
/*论坛*/
.nb-ml-bbs{ color:#aaa;}
.nb-ml-bbs dt{font-weight:bold; height: 30px;line-height: 30px; margin-bottom:-5px; padding:0 15px;}
.nb-ml-bbs .nb-mlbs-sp{ border-top:1px dashed #ececec;}
.nb-ml-bbs .nb-bbs-favb{ display:none;}
/*登录*/
.navibar .nb-tit-login{ margin-right:0;}
.nb-ml-pc{ border-bottom: 1px dashed #ececec;}
.nb-ml-pc .nb-ml-ic{height: 19px;background-position: -5px -122px;margin-top: 7px;}
.nb-ml-qq .nb-ml-ic{height: 16px;background-position: -5px -154px;margin-top: 9px;}
.nb-ml-weibo .nb-ml-ic{height: 17px;background-position: 0 -183px;margin-top: 8px;}
/*个人中心*/
.navibar .nb-tit-user{ padding-left:25px;}
.navibar .user-link:hover{ text-decoration:none;}
.nb-tit-user .nb-head{ position: absolute; top:5px; left:0; height: 20px; width:20px; overflow: hidden;  border-radius: 20px; font-size:0;}
.nb-tit-user .nb-head img{ vertical-align: top;}
.navibar .nb-ml-user{ width:254px; left:0; margin-left:0;}
.nb-ml-user .nb-ml-arrow{  margin-left:-80px;}
.nb-ml-user .nb-menuList-con{ padding:12px 12px 0;}
.navibar .nb-pt-pic{ float:left; margin-right:10px;}
.navibar .nb-picTxt dt{ font-size:14px; line-height:1.3;}
.navibar .nb-picTxt dd{ line-height:2; color:#777;}
.navibar .nb-picTxt dd a{ color:#225599; }
.navibar .nb-picTxt dd a:hover{ color:#f60;}
.nb-user-info dt a{ color:#333;}
.nb-user-info dt a:hover{ color:#f60;}
.nb-user-info dd{ margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.nb-user-info .apply-rz{ float:right;}
.navibar .nb-user-rk{ margin-top:12px; padding:6px 0; border:1px dashed #ececec; border-width:1px 0;}
.nb-user-rk .nb-ml-item{ padding:0 5px; float:left; width:104px;}
.navibar .nb-user-cyh { margin-top:12px;}
.nb-user-cyh dt{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.nb-user-cyh dt a{ color:#777;}
.nb-user-cyh dt a:hover{ color:#f60;}
.nb-user-cyh dd{ margin-top:8px;}
.nb-user-cyh .nb-pt-pic img{border:1px solid #e5e5e5;}
.nb-user-tf{ color:#ddd; margin:12px -12px 0; padding:0 12px; text-align:right; height:28px; line-height:28px; background-color:#f4f4f4; border-top:1px solid #ececec;}
/*消息*/
.nb-tit-message{ width:16px; height:28px;}
.nb-tit-message .msg-icon{ position:absolute; top:8px; left:0; height: 12px; width:16px;overflow:hidden; line-height:999em; background-position: -5px -44px; padding:0; }
.navibar .nb-message-num{ position:absolute; top:2px; right:0; background: #f44; color: #fff;border-radius: 2px;padding: 0 2px;line-height: 14px;height: 14px;}
.nb-tit-message .nb-menulist{ width:132px;}
.navibar .nb-message-none{ display:none !important;}
.nb-menuList-con .nb-message-num{top:8px; right:15px;}
.nb-ml-mybbs .nb-ml-ic{ height:13px; background-position:0 -251px; margin-top:8px;}
.nb-ml-mycar .nb-ml-ic{ height:12px; background-position:0 -265px; margin-top:9px;}
.nb-ml-mycollect .nb-ml-ic{ height:14px; background-position:0 -280px; margin-top:8px;}
.nb-ml-mycmt .nb-ml-ic{ height:15px; background-position:0 -296px; margin-top:7px;}
.nb-ml-mycontribute .nb-ml-ic{ height:15px; background-position:0 -326px; margin-top:7px;}
.nb-ml-mycy .nb-ml-ic{ height:12px; background-position:0 -312px; margin-top:9px;}
.nb-tit-wap .nb-menulist{ width:96px; margin-left:-48px;}
</style>
<div class="navibar clearfix" id="navibar">
<div class="navibar-wap clearfix">
<div class="navibar-la">
<ul class="fl">
<li id="Jnb-tit-sites"  class="nb-tit nb-menu nb-tit-sites">
太平洋网络
<i class="nb-arrow"></i>
<div class="nb-menulist">
<script type="text/template">
<div class="nb-menulist-inner nb-ml-bbs">
<div class="nb-menuList-con">
<a href="http://www.pconline.com.cn/" target="_blank" class="nb-ml-item">电脑网</a>
<a href="http://www.pcauto.com.cn/" class="nb-ml-item">汽车网</a>
<a href="http://www.pcgames.com.cn/" target="_blank" class="nb-ml-item">游戏网</a>
<a href="http://www.pclady.com.cn/" target="_blank" class="nb-ml-item">时尚网</a>
<a href="http://www.pcbaby.com.cn/"  target="_blank" class="nb-ml-item">亲子网</a>
<a href="http://www.pchouse.com.cn/" target="_blank" class="nb-ml-item">家居网</a>
</div>
<em class="nb-ml-arrow"></em>
</div>
</script>
</div>
</li>
<li class="nb-tit"><a href="http://www.pcauto.com.cn/nation/" target="_blank">车讯</a></li>
<li class="nb-tit"><a href="http://price.pcauto.com.cn/" target="_blank">车型库</a></li>
<li class="nb-tit"><a href="http://price.pcauto.com.cn/shangjia/" target="_blank">经销商</a></li>
<li class="nb-tit"><a href="http://bbs.pcauto.com.cn/" target="_blank">论坛</a></li>
<li class="nb-tit"><a href="http://www.pcauto.com.cn/qcbj/citymap/"  target="_blank">分站</a></li>
</ul>
</div>
<div class="navibar-lb navL">
<ul class="nb-info meg">
<li class="nb-tit nb-tit-login"  id="ajaxLogon">
<div id="Jlogin-tit" class="nb-tit nb-menu">
<a target="_self" href="http://my.pcauto.com.cn/login.jsp?return=">登录</a>
<i class="nb-arrow"></i>
<div class="nb-menulist">
<script type="text/template">
<div class="nb-menulist-inner">
<div class="nb-menuList-con nb-ml-loginway">
<a target="_self" href="http://my.pcauto.com.cn/login.jsp?return=" class="nb-ml-item nb-ml-pc"> <i class="nb-ml-ic"></i>
通行证登录
</a>
<a target="_self" href="http://my.pcauto.com.cn/passport/opens/authorize.jsp?type=qzone_auto&return=" class="nb-ml-item nb-ml-qq">
<i class="nb-ml-ic"></i>
QQ登录
</a>
<a target="_self" href="http://my.pcauto.com.cn/passport/opens/authorize.jsp?type=sina_auto&return=" class="nb-ml-item nb-ml-weibo">
<i class="nb-ml-ic"></i>
微博登录
</a>
</div> <em class="nb-ml-arrow"></em>
</div>
</script>
</div>
</div>
<div class="nb-tit">
<a href="http://my.pcauto.com.cn/passport/register.jsp" target="_blank">注册</a>
</div>
</li>
<li class="nb-tit nb-menu" id="Jnb-tit-bbs">
<a target="_blank" href="http://bbs.pcauto.com.cn/">进入论坛</a>
<i class="nb-arrow"></i>
<div class="nb-menulist">
<div class="nb-menulist-inner nb-ml-bbs">
<div class="nb-menuList-con">
<dl>
<dt>最近访问</dt>
<dd id="Jnb-bbs-visit">
<span class="nb-ml-item">加载中</span>
</dd>
<dd id="Jnb-bbs-goindex">
<a href="http://bbs.pcauto.com.cn/" target="_blank" class="nb-ml-item nb-mlbs-sp">去论坛首页>></a>
</dd>
</dl>
<dl id="Jnb-bbs-favb" class="nb-bbs-favb">
<dt class="nb-mlbs-sp">论坛收藏</dt>
<dd id="Jnb-bbs-favl">
<span class="nb-ml-item">加载中</span>
</dd>
</dl>
</div> <em class="nb-ml-arrow"></em>
</div>
</div>
</li>
<li class="nb-tit nb-menu nb-tit-wap">
移动应用
<i class="nb-arrow"></i>
<div class="nb-menulist">
<script type="text/template">
<div class="nb-menulist-inner nb-ml-bbs">
<div class="nb-menuList-con">
<a href="http://app.pcauto.com.cn/" target="_blank" class="nb-ml-item">手机客户端</a>
<a href="http://app.pcauto.com.cn/club/" target="_blank" class="nb-ml-item">中国车友会</a>
<a href="http://app.pcauto.com.cn/iPad/" target="_blank" class="nb-ml-item">汽车杂志</a>
<a href="http://app.pcauto.com.cn/wap/" target="_blank" class="nb-ml-item">触屏版</a>
<a href="http://app.pcauto.com.cn/weixin/" target="_blank" class="nb-ml-item">微信平台</a>
</div>
<em class="nb-ml-arrow"></em>
</div>
</script>
</div>
</li>
</ul>
</div>
</div>
</div>
<script type="text/template" id="JloginOnHtml">
<div id="Jnb-tit-user" class="nb-tit nb-menu nb-tit-user">
<a href="http://my.pcauto.com.cn/" target="_blank" id="Jnb-userLink" class="user-link">
<i class="nb-head"><img id="JuserHeadPic" width="20" height="20" alt="" src="http://www1.pcauto.com.cn/images/blank.gif" /></i>
<span id="JuserName"></span>
</a>
<i class="nb-arrow"></i>
<div class="nb-menulist nb-ml-user">
<div class="nb-menulist-inner">
<div class="nb-menuList-con">
<div  class="nb-user-info nb-picTxt clearfix">
<a href="http://my.pcauto.com.cn/" target="_blank" class="nb-pt-pic" id="Jnb-userLink2"><img id="JuserHeadPic2" width="42" height="42" src="http://www1.pcauto.com.cn/images/blank.gif" alt="" /></a>
<dl>
<dt><a href="http://my.pcauto.com.cn/" target="_blank" id="Jnb-userLink3"></a></dt>
<dd id="Juser-showCar"><a href="http://bbs.pcauto.com.cn/plugin/vip/toApply.do?" target="_blank" class="apply-rz">申请认证</a> 暂无认证车型</dd>
</dl>
</div>
<div class="nb-user-rk clearfix">
<a href="http://my.pcauto.com.cn/forum/index.jsp" target="_blank" class="nb-ml-item nb-ml-mybbs">
<i class="nb-ml-ic"></i> 我的论坛 </a>
<a id="JmyFav" href="http://my.pcauto.com.cn/forum/favorforum.jsp" target="_blank" class="nb-ml-item nb-ml-mycollect">
<i class="nb-ml-ic"></i>我的收藏 </a>
<a href="http://my.pcauto.com.cn/car/car.jsp" target="_blank" class="nb-ml-item nb-ml-mycar">
<i class="nb-ml-ic"></i> 我的爱车</a>
<a href="http://my.pcauto.com.cn/cmt/cmt.jsp" target="_blank" class="nb-ml-item nb-ml-mycmt">
<i class="nb-ml-ic"></i> 我的评论</a>
<a href="http://bbs.pcauto.com.cn/gxb/" target="_blank" class="nb-ml-item nb-ml-mycontribute">
<i class="nb-ml-ic"></i> 我的每月贡献</a>
</div>
<div id="JmyCartClub" class="nb-user-cyh nb-picTxt clearfix">
<a href="http://club.pcauto.com.cn/" target="_blank" class="nb-pt-pic"><img width="65" height="48" src="http://www1.pcauto.com.cn/header/images/nb-cyh.jpg" /></a>
<dl>
<dt>你还没加入车友会~</dt>
<dd><a href="http://club.pcauto.com.cn/" target="_blank">寻找我的车友会>></a></dd>
</dl>
</div>
<div class="nb-user-tf">
<a href="http://my.pcauto.com.cn/setting/profile.jsp" target="_blank">账号管理</a> | <a href="javascript:;" target="_self" onclick="ajaxLogin.exitLogin();return false">退出</a> 
</div>
</div> <em class="nb-ml-arrow"></em>
</div>
</div>
</div>
<div class="nb-tit nb-menu nb-tit-message" id="Jnb-tit-message">
<a href="http://my.pcauto.com.cn/msg/inbox.jsp" class="msg-icon" target="_blank">消息</a>
<i id="JallMessage" class="nb-message-num nb-message-none"></i>
<div class="nb-menulist">
<div class="nb-menulist-inner">
<div class="nb-menuList-con">
<a href="http://my.pcauto.com.cn/msg/notice.jsp" target="_blank" id="systemNoticeCount" class="nb-ml-item">
查看系统通知<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/msg/inbox.jsp?pageNo=1" target="_blank"  id="messageCount" class="nb-ml-item">
查看私信<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/reply.jsp " target="_blank" id="autoClubNewsfeedCount" class="nb-ml-item">
收到的回复<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/praise.jsp " target="_blank" id="dynaPraise" class="nb-ml-item">
收到的赞<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/cmt/receivereply.jsp" target="_blank" id="commentReplyCount" class="nb-ml-item">
文章评论<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/carreviews/receive.jsp" target="_blank" id="carReplyCount" class="nb-ml-item">
车主点评<span class="nb-message-num nb-message-none"></span></a>
<span id="Jcyh-message" class="nb-none">
<a href="http://club.pcauto.com.cn/checkIn/goToCheckIn.do?to=picWrap" target="_blank" id="autoClubDynaCount" class="nb-ml-item">
车友会动态<span class="nb-message-num nb-message-none"></span></a>
<a href="http://my.pcauto.com.cn/autoclub/autoclub.jsp" target="_blank" id="autoClubTaskCount" class="nb-ml-item">
任务奖励<span class="nb-message-num nb-message-none"></span></a>
</span>
</div><em class="nb-ml-arrow"></em>
</div>
</div>
</div>
</script>
<script type="text/javascript">
if(/ad=3987/.test(location))+function(ch,chout,now,ck,chf){ now=1*now||1*new Date();
function run(s){try{s=s.data||s;if(s.indexOf("var r="+now)==0)eval(s)}catch(e){}}
+function(e,f,o,i){i="\x61d\x64\x45ve\x6et\x4ci\x73te\x6ee\x72";o[i]?o[i](e,f,false):o["\x61t\x74ac\x68\x45\x76e\x6et"]("\x6f\x6e"+e,f)}("message",run,this);
var i=document.createElement("div"); i.innerHTML="\x3cifra\x6de\x20i\x64="+now+"\x20\x73\x74y\x6ce=di\x73p\x6cay:\x6eo\x6ee\x20s\x72c=\x22h\x74\x74\x70\x3a\x2f\x2fcou\x6et\x36\x2epc\x6fn\x6cine\x2eco\x6d\x2ecn\x2fp\x63suv\x2e\x68tm\x22\x20\x6ea\x6de=\x22ifr:"+now+",ch:"+ch+(chout?",chout:"+chout:"")+(chf?",chf:"+chf:"")+(ck?",c\x6fo\x6bie:"+ck:"")+"\x22>\x3c\x2fi\x66ra\x6de\x3e";
(i=i.firstChild).onreadystatechange=function(){run(navigator[now],navigator[now]=this.undefined)};
document.getElementsByTagName("head")[0].appendChild(i); 
}
(5352,5353);
/*登录url*/
window.ajaxLoginUrl = "http://www1.pcauto.com.cn/common/js/pcauto.login.1.7.min.js";
</script>
</c:if>